package cn.gzydt.framework.test.service.remoting;

public class PhoneNumManagerImpl implements PhoneNumManager {
	
	private String name = "default";
	private String num = "000000";

	@Override
	public void setName(String name) {
		this.name = name;
	}

	@Override
	public String getName() {
		return "the name is : " + name;
	}

	@Override
	public void setNum(String num) {
		this.num = num;
	}
	
	@Override
	public String getNum() {
		return name +":" + num;
	}

	@Override
	public PhoneBook getPhoneBook() {
		PhoneBook book = new PhoneBook();
		book.setName(name);
		book.setNum(num);
		return book;
	}
}
